/*
 * Application\Inc\Library\pressure_sensor.h
 *
 * P1 Pressure sensor function
 *
 * Author: Chao-Chi Kuo <chaochi_kuo@systech.com.tw>
 * Copyright (c) 2010 SYSTEMS & TECHNOLOGY CORP. <http://www.systech.com.tw/>
 * All rights reserved.
 *
 * Modifications:
 * 2010/04/21 Chao-Chi Kuo	first implemetation
 *
 * $Id: pressure_sensor.h 196 2010-08-05 01:54:48Z chaochi_kuo $
 */
#ifndef __PSENSOR_H_
#define __PSENSOR_H_

#ifdef  __cplusplus
extern "C" {
#endif		/* __cplusplus */


#include "config.h"

#define USE_BMP085		1

#define PS_INIT_OK		0
#define PS_INIT_ERR		1

/* define Pressure Sensor I/O Control */
#define PS_GET_TEMPERATURE		1
#define PS_GET_PRESSURE			2
#define PS_GET_ALTITUDE			3


extern int PSensor_Init(void);
extern void PSensor_ioctl(int ioctl, char *arg);
//extern float PSensor_ioctl(int ioctl);       //fenris 20101207 test pressure


#ifdef __cplusplus
}
#endif	/* __cplusplus */
#endif	/* __PSENSOR_H_ */